package com.ethink.order.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author default
 * @version 1.0.0
 * @ClassName PurchaseOrderUpdateRequest.java
 * @Description
 * @createTime 2022年11月11日 14:38:00
 */
@Data
public class PurchaseOrderUpdateRequest {

    @NotNull
    @Schema(description ="主键")
    private Long id;

    @Schema(description ="枚举 订单状态:1-草稿(s1)|2-待付款(s2)|3-待收货(s3)|4-已完结(s4)")
    private Integer orderStatus;

    @Schema(description ="分仓编码")
    private String subWarehouseCode;

    @Schema(description ="分仓名称")
    private String subWarehouseName;

    @Schema(description ="外部单号")
    private String outOrderNo;

    @Schema(description ="预计出境日期")
    private Date exceptOutboundTime;

    @Schema(description ="订单总额")
    private BigDecimal orderPrice;

    @NotEmpty
    @Schema(description = "采购详情id")
    private List<Long> ids;

}
